package com.ruoyi.shop.mapper;

import com.ruoyi.shop.domain.ShopPointsOrders;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 积分兑换订单Mapper接口
 * 
 * @author liuwp
 * @date 2025-11-24
 */
public interface ShopPointsOrdersMapper 
{
    /**
     * 查询积分兑换订单
     * 
     * @param id 积分兑换订单主键
     * @return 积分兑换订单
     */
    public ShopPointsOrders selectShopPointsOrdersById(Long id);

    /**
     * 查询积分兑换订单列表
     * 
     * @param shopPointsOrders 积分兑换订单
     * @return 积分兑换订单集合
     */
    public List<ShopPointsOrders> selectShopPointsOrdersList(ShopPointsOrders shopPointsOrders);

    /**
     * 可以业务主键查询一条积分兑换订单
     *
     * @param shopPointsOrders 积分兑换订单
     * @return 积分兑换订单集合
     */
    public ShopPointsOrders selectOneShopPointsOrders(ShopPointsOrders shopPointsOrders);

    /**
     * 新增积分兑换订单
     * 
     * @param shopPointsOrders 积分兑换订单
     * @return 结果
     */
    public int insertShopPointsOrders(ShopPointsOrders shopPointsOrders);

    /**
     * 修改积分兑换订单
     * 
     * @param shopPointsOrders 积分兑换订单
     * @return 结果
     */
    public int updateShopPointsOrders(ShopPointsOrders shopPointsOrders);

    /**
     * 条件修改积分兑换订单
     *
     * @param shopPointsOrders 积分兑换订单
     * @param shopPointsOrders 积分兑换订单条件
     * @return 结果
     */
    public int updateShopPointsOrdersCondition(@Param("shopPointsOrders") ShopPointsOrders shopPointsOrders, @Param("shopPointsOrdersCondition") ShopPointsOrders shopPointsOrdersCondition);

    /**
     * 删除积分兑换订单
     * 
     * @param id 积分兑换订单主键
     * @return 结果
     */
    public int deleteShopPointsOrdersById(Long id);

    /**
     * 条件删除积分兑换订单
     *
     * @param shopPointsOrders 积分兑换订单
     * @return 结果
     */
    public int deleteShopPointsOrdersByCondition(ShopPointsOrders shopPointsOrders);

    /**
     * 批量删除积分兑换订单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShopPointsOrdersByIds(Long[] ids);
}
